package beans;

/**
 * @author roze
 *
 */
public class Session {

	private String token;
	private Long remainingTime;	
	
	
	
	/**
	 * @param token
	 * @param remainingTime
	 */
	public Session(String token, Long remainingTime) {
		super();
		this.token = token;
		this.remainingTime = remainingTime;
	}
	
	

	public Session() {
		super();
	}



	/**
	 * @return un token
	 */
	public String getToken() {
		return token;
	}
	
	/**
	 * @param token
	 */
	public void setToken(String token) {
		this.token = token;
	}
	
	/**
	 * @return le temps restant avant expiration du token
	 */
	public Long getRemainingTime() {
		return remainingTime;
	}
	
	/**
	 * @param remainingTime
	 */
	public void setRemainingTime(Long remainingTime) {
		this.remainingTime = remainingTime;
	}
	
	
	@Override
	public String toString() {
		return "Session [token=" + token + ", remainingTime=" + remainingTime
				+ "]";
	}
	
	
}
